overlay: Fix child window position/size on realize
authorAlexander Larsson <alexl@redhat.com>
Tue, 11 Dec 2012 14:41:50 +0000 (15:41 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 11 Dec 2012 14:41:50 +0000 (15:41 +0100)
We don't get an automatic queue resize on realize anymore, which
was papering over this bug where we did not set the child window
size/position at realize time.

gtk/gtkoverlay.c

index 2d94579c1f00f068d8edb885b0bfebe949da3853..a66ede8dc67cba6622b01f628f03528b35763a00 100644 (file)
@@ -423,7 +423,10 @@ gtk_overlay_realize (GtkWidget *widget)
       child = children->data;
 
       if (child->window == NULL)
-        child->window = gtk_overlay_create_child_window (overlay, child->widget);
+       {
+         child->window = gtk_overlay_create_child_window (overlay, child->widget);
+         gtk_overlay_child_allocate (overlay, child);
+       }
     }
 }